package com.sumainfor.wx.system.fallback;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.feign.BaseFeignTenant;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/1/18 16:03
 * @Description:
 */
@Component
public class FeignTenantFallback implements BaseFeignTenant {

    @Override
    public List<Map<String,Object>> selectTenantInfoByIdList(List<String> ids) {
        return new ArrayList<Map<String,Object>>();
    }


   //////////////////////////////////////////////
    /////
    ///////////////////////////////////////////
    @Override
    public JsonResult getTctenForTcmkt(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getTenantByTenPhone(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult findHousingList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getSearchHot(Integer size) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getHistorySearchList() {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getHousingInfoById(String infoId) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult selectLikeHousing(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

}
